const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const moviesSchema = new Schema({
    title: {
        type: String,
        required: true,
    },
    desc: {
        type: String,
        default: "",
    },
    coverImg: {
        type: String,
        default: "",
    },
    link: {
        type: String,
        default: "",
    },
    views: {
        type: Number,
        default: 1,
    },
    categories: {
        type: String,
        default: "",
    },
}, {
    timestamps: true,
});

const Movie = mongoose.model('movie', moviesSchema);
module.exports = Movie;